
import java.util.ArrayList;
import java.util.LinkedList;
import java.util.Queue;
import java.util.Scanner;

/**
 * @classDesc: 功能描述:()
 * @author: 黄伟成
 * @createTime: 2017/9/21 11:28
 * @version: v1.0
 * @copyright:善林(上海)金融信息服务有限公司
 */
public class QueueDemo {

    public static void main(String[] args) throws InterruptedException {
        //ArrayList<String>

        Scanner s = new Scanner(System.in);
        System.out.println("请输入字符串：");
        while (true) {
            String line = s.nextLine();
            if (line.equals("exit")) break;
                QueueUtil.offer(line);
        }

    }
}
